Opt("WinTitleMatchMode", 2)
WinActivate("MindCrack")
;Local $mousePos = MouseGetPos()
;MsgBox(0, "Mouse Pos", "x="&$mousePos[0]&",y="&$mousePos[1])
MouseClick("left",1000,500)
Sleep(3)

Local $file = FileOpen("libs/logf.lua", 0)

; Check if file opened for reading OK
If $file = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf

; Read in 1 character at a time until the EOF is reached
While 1
    Local $chars = FileRead($file, 1)
    If @error = -1 Then ExitLoop
    Send($chars)
WEnd

;Send("End")

FileClose($file)